package com.infolab.scheduler.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.validator.constraints.NotBlank;

@Entity
@Table(name="AMTB_INTF_PARTREPLACEMENT")
public class IntfPartReplacement implements Serializable {

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer intfPartReplacementId;
	
	@NotBlank(message="{error.empty}")
	private String vehicleId;
	
	@NotBlank(message="{error.empty}")
	private String assetModelCode;
	
	private String oldSerialNo;
	
	@NotBlank(message="{error.empty}")
	private String newSerialNo;
	
	private Date dateCreated;
	private Date dateExecuted;
	
	private String status;
	
	
	public Integer getIntfPartReplacementId() {
		return intfPartReplacementId;
	}
	public void setIntfPartReplacementId(Integer intfPartReplacementId) {
		this.intfPartReplacementId = intfPartReplacementId;
	}
	public String getVehicleId() {
		return vehicleId;
	}
	public void setVehicleId(String vehicleId) {
		this.vehicleId = vehicleId;
	}
	public String getAssetModelCode() {
		return assetModelCode;
	}
	public void setAssetModelCode(String assetModelCode) {
		this.assetModelCode = assetModelCode;
	}
	public String getOldSerialNo() {
		return oldSerialNo;
	}
	public void setOldSerialNo(String oldSerialNo) {
		this.oldSerialNo = oldSerialNo;
	}
	public String getNewSerialNo() {
		return newSerialNo;
	}
	public void setNewSerialNo(String newSerialNo) {
		this.newSerialNo = newSerialNo;
	}
	public Date getDateCreated() {
		return dateCreated;
	}
	public void setDateCreated(Date dateCreated) {
		this.dateCreated = dateCreated;
	}
	public Date getDateExecuted() {
		return dateExecuted;
	}
	public void setDateExecuted(Date dateExecuted) {
		this.dateExecuted = dateExecuted;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
	
	
}
